/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2015, Open Source Geospatial Foundation (OSGeo)
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.03.04 at 12:42:54 PM CET
//

package org.geotools.coverage.io.netcdf.cf;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * Java class for anonymous complex type.
 *
 * <p>The following schema fragment specifies the expected content contained within this class.
 *
 * <pre>
 * &lt;complexType>
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;all>
 *         &lt;element ref="{}description"/>
 *         &lt;element ref="{}canonical_units"/>
 *         &lt;element ref="{}grib" minOccurs="0"/>
 *         &lt;element ref="{}amip" minOccurs="0"/>
 *       &lt;/all>
 *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
        name = "",
        propOrder = {})
@XmlRootElement(name = "entry")
public class Entry {

    @XmlElement(required = true)
    protected String description;

    @XmlElement(name = "canonical_units", required = true)
    protected String canonicalUnits;

    protected String grib;
    protected String amip;

    @XmlAttribute(name = "id", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlID
    @XmlSchemaType(name = "ID")
    protected String id;

    /**
     * Gets the value of the description property.
     *
     * @return possible object is {@link String }
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the value of the description property.
     *
     * @param value allowed object is {@link String }
     */
    public void setDescription(String value) {
        this.description = value;
    }

    /**
     * Gets the value of the canonicalUnits property.
     *
     * @return possible object is {@link String }
     */
    public String getCanonicalUnits() {
        return canonicalUnits;
    }

    /**
     * Sets the value of the canonicalUnits property.
     *
     * @param value allowed object is {@link String }
     */
    public void setCanonicalUnits(String value) {
        this.canonicalUnits = value;
    }

    /**
     * Gets the value of the grib property.
     *
     * @return possible object is {@link String }
     */
    public String getGrib() {
        return grib;
    }

    /**
     * Sets the value of the grib property.
     *
     * @param value allowed object is {@link String }
     */
    public void setGrib(String value) {
        this.grib = value;
    }

    /**
     * Gets the value of the amip property.
     *
     * @return possible object is {@link String }
     */
    public String getAmip() {
        return amip;
    }

    /**
     * Sets the value of the amip property.
     *
     * @param value allowed object is {@link String }
     */
    public void setAmip(String value) {
        this.amip = value;
    }

    /**
     * Gets the value of the id property.
     *
     * @return possible object is {@link String }
     */
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     *
     * @param value allowed object is {@link String }
     */
    public void setId(String value) {
        this.id = value;
    }

    @Override
    public String toString() {
        return "Entry [description="
                + description
                + ", canonicalUnits="
                + canonicalUnits
                + ", grib="
                + grib
                + ", amip="
                + amip
                + ", id="
                + id
                + "]";
    }
}
